# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=hw-probe
pkgver=1.6.4
pkgrel=0
pkgdesc="A tool to probe for hardware and upload result to the Linux Hardware Database"
url="https://github.com/linuxhw/hw-probe"
arch="noarch"
license="LGPL-2.1"
makedepends="perl-dev"
depends="perl perl-digest-sha1 perl-libwww
hwinfo curl dmidecode smartmontools hwids-pci hwids-usb hwids-net
memtester hdparm i2c-tools acpica sysstat xz"
options="!check" # no test available
source="$pkgname-$pkgver.tar.gz::https://github.com/linuxhw/hw-probe/archive/$pkgver.tar.gz"

build() {
	make PREFIX=/usr
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="
c812ebdb23f6b8a4df2f2849a29ecc1307c09f758aeb912face6e899510af69f9dee606fb0ff1807a6de1e89a5f7a8b3259b894cc823b9d25efbf26accf60ac4  hw-probe-1.6.4.tar.gz
"
